﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ToWaDBFirst.Models
{

    /**
     * Wrapper-class for the message class.
     **/
    public class MessageWrapper
    {
        public int messageId { get; set; }
        [Display(Name = "Title")]
        public string title { get; set; }
        [Display(Name = "From")]
        public string fromUser { get; set; }
        [Display(Name = "Posted/Received")]
        public System.DateTime posted { get; set; }
        [Display(Name = "Content")]
        public string content { get; set; }
        public List<string> toUsers { get; set; }
        public bool read { get; set; }
    }
}